package com.example.jianbing;

/**
 * @ClassName : TestClass
 * @Description :
 * @Author : JB
 * @Date: 2020-11-27 00:49
 */


public class TestClass {
    void method(Person p,int age) {
        p.age=20;
        age=20;
    }
    public static void main(String[] args) {
        TestClass t = new TestClass();
        Person p = new Person("name");
        p.age=10;
        int age = 10;
        t.method(p,age);
        System.out.println(p.age+","+age);
    }
}
